package com.wangtianxiang.sxp.common.exception;

import com.wangtianxiang.sxp.common.http.BizCode;

/**
 * 应用异常类,使用本异常类，应该明确 message内容，并且message 内容用于展现给用户
 * @author lgyu4
 *
 * @time 2018-07-24
 *
 */
public class AppException extends RuntimeException {

	/**
	 */
	private BizCode bizCode;
	
	private static final long serialVersionUID = -7373245200636236203L;

	public AppException() {
		super();
	}

	public AppException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public AppException(String message, Throwable cause) {
		super(message, cause);
	}

	public AppException(String message) {
		super(message);
	}

	public AppException(Throwable cause) {
		super(cause);
	}
	
	public AppException(BizCode bizCode, String message) {
		super(message);
		this.bizCode = bizCode;
	}

	public BizCode getBizCode() {
		return bizCode;
	}
	

}
